﻿using System;
using System.Collections.Generic;
using System.Text;
using AspNetCs.Model;
using System.Collections;
using System.Data;

namespace AspNetCs.IDAL
{
    public interface INetMu
    {
        /// <summary>
        /// 生成公墓表中不存在的随机数
        /// </summary>
        /// <param name="list">不允许出现的随机数</param>
        /// <returns></returns>
        string RndNum(ArrayList list, int Rndlen);

        /// <summary>
        /// 是否存在公墓编号
        /// </summary>
        /// <param name="MuId">公墓编号</param>
        /// <returns></returns>
        bool IsExistNetMuId(string MuId);

        int AddNetMu(NetMu_Model model);

        /// <summary>
        ///  获得用户创建墓
        /// </summary>
        /// <param name="UserId"></param>
        /// <returns></returns>
        DataTable getMyCreateMetMus(int UserId, string propertyItems);


        /// <summary>
        /// 获得墓的详细信息
        /// </summary>
        /// <param name="NetNumId"></param>
        /// <returns></returns>
        NetMu_Model getNetMuDetailInfo(int NetMuId);

        /// <summary>
        /// 删除墓(物理删除)
        /// </summary>
        /// <param name="NetNuId"></param>
        /// <returns></returns>
        int DeleteNetMu(int NetMuId);

        /// <summary>
        /// 隐藏墓(逻辑删除)
        /// </summary>
        /// <param name="NetMuId"></param>
        /// <returns></returns>
        int HiddenNetMu(int NetMuId);

        /// <summary>
        /// 审核通过或者取消审核 type=1 代表审核通过 type=0代表取消审核通过
        /// </summary>
        /// <param name="type"></param>
        /// <param name="NetMuId"></param>
        /// <returns></returns>
        int CheckPassOrCancle(int type, int NetMuId);

        /// <summary>
        /// 修改公墓信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int updateNetMu(NetMu_Model model);


        /// <summary>
        /// 设置推荐或者取消推荐
        /// </summary>
        /// <param name="Id"></param>
        /// <param name="CancleOrIntro">1表示设置推荐 2表示取消推荐</param>
        /// <returns></returns>
        int SetIntro(int Id, int CancleOrIntro);

        /// <summary>
        /// 审核或者取消审核
        /// </summary>
        /// <param name="Id"></param>
        /// <param name="CancleOrIntro">1表示审核 0表示取消审核</param>
        /// <returns></returns>
        int SetCheck(int Id, int CancleOrIntro);
        /// <summary>
        /// 返回DataTable
        /// </summary>
        /// <param name="filter"></param>
        /// <returns></returns>
        DataTable GetDataTable(string filter);

        /// <summary>
        /// 设置背景音乐
        /// </summary>
        /// <param name="Id"></param>
        /// <param name="MusicId"></param>
        /// <returns></returns>
        int SetMusic(int Id, int MusicId);

        /// <summary>
        /// 字段更新
        /// </summary>
        /// <param name="Upfilter">不需要加“Set”关键字，更新的字段及值,不能为空值</param>
        /// <param name="filter">条件</param>
        void filterUpdate(string Upfilter, string filter);


    }
}
